⏳ Long Focus Session
(26 actions, 18 KB)
0 Run Shortcut
Pause Audio
Workflow
:
{ "workflowIdentifier": "38076F1B-7774-4E0D-A6E3-7B8DB026DE6C", "workflowName": "Pause Audio", "isSelf": false }
1 Run Shortcut
🎧 Connect to Headphone
Workflow
:
{ "workflowIdentifier": "B9388065-431B-4984-913A-28A2AC524202", "workflowName": "🎧 Connect to Headphone", "isSelf": false }
2 If
[Shortcut Input]
has any value
3 Get Numbers from
[Shortcut Input]
4 Otherwise
5 Ask for
Number
Input
AskActionDefaultAnswerNumber
:
2
AskActionAllowsNegativeNumbers
:
false
AskActionAllowsDecimalNumbers
:
false
AskActionPrompt
:
⚛️ How many focus sessions?
6 End If »
7
9
11
7 Repeat
[6 numFocusSessions]
Times
8 Run Shortcut
⚛️ Deep Work Session
Workflow
:
{ "workflowIdentifier": "3412307F-40EB-414F-A10D-2AB1F3CF0DD2", "workflowName": "⚛️ Deep Work Session", "isSelf": false }
9 If
[6 numFocusSessions]
>
1
10 Set Media Volume to
0.5997374653816223
11 If
[Repeat Index]
is
[6 numFocusSessions]
12 Text »
Great job! Take a long break!
13 Dictionary »
{ "text": "
[12 Text]
", "language": "EN" }
14 Run Shortcut
_Text2Speech
Input
:
[13 Dictionary]
Workflow
:
{ "workflowIdentifier": "9E67FDF1-AE7E-4051-8D46-DDFD104CB87C", "workflowName": "_Text2Speech", "isSelf": false }
15 Otherwise
16 Number
5
»
17
19
17 Calculate Expression
[16 Number]
* 60 -
[16 Number]
»
18 Wait
[17 Calculation Result]
seconds
19 Run Shortcut
Countdown Timer
Input
:
[16 Number]
Workflow
:
{ "workflowIdentifier": "33949C11-4961-48B4-AF8F-91D746F6139D", "workflowName": "Countdown Timer", "isSelf": false }
20 Text »
Time to focus!
21 Dictionary »
{ "text": "
[20 Text]
", "language": "EN" }
22 Run Shortcut
_Text2Speech
Input
:
[21 Dictionary]
Workflow
:
{ "workflowIdentifier": "9E67FDF1-AE7E-4051-8D46-DDFD104CB87C", "workflowName": "_Text2Speech", "isSelf": false }
23 End If ▵
15
24 End If ▵
9
25 End Repeat Times ▵
7